
import yagmail
import logging
<<<<<<< HEAD
=======

>>>>>>> 6b7e1c062a076f2bb4eb19f3c4cf5d3e51cefebc

#封装日志方法
def Log():
    logging.basicConfig(filename='jiuxiang.log',filemode='a+',level=logging.DEBUG,format='%(levelname)s ->%(asctime)s %(message)s')


#封装qq方法
def sed_eami(filep):
    eami=yagmail.SMTP(user='1006142636@qq.com',password='hygnwdryluhsbgac',host='smtp.qq.com')
    eami.send(to='1006142636@qq.com',subject='酒仙登录到加入购物车业务用列',contents='今日报告,请查看',attachments=filep)


<<<<<<< HEAD
#封装yaml文件
=======
# #封装yaml文件
>>>>>>> 6b7e1c062a076f2bb4eb19f3c4cf5d3e51cefebc
# def yam(fliep):
#     with open(fliep,'r',encoding='utf-8')as e:
#         return yaml.safe_load(e)

